<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/business/mngr/include/top.jsp" %>
	<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td width="160" valign="top"><table width="145" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td valign="top">
				<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="160" valign="top">
							<table width="145" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td height="23"><span class="style3">서비스 관리</span></td>
								</tr>
								<tr>
									<td height="2" bgcolor="#6d6d6d"></td>
								</tr>
								<tr>
									<td height="10"></td>
								</tr>
								<tr>
									<td valign="top">
										<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
											<tr>
												<td height="28">- <a href="${requestScope.contextPath}/business/mngr/service/serviceList.do" >서비스 관리</a></td>
											</tr>
											<tr>
												<td height="1" bgcolor="#e5e5e5"></td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td height="30" valign="top">&nbsp;</td>
		</tr>
		<tr>
			<td valign="top"></td>
		</tr>
		<tr>
			<td height="50" valign="top">&nbsp;</td>
		</tr>
	</table>
</td>
<td width="1" valign="top" bgcolor="#e5e5e5"></td>
<td align="left" valign="top" style="padding-left:10px;">
	<table width="700" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td><img src="${requestScope.contextPath}/img/com/bullet02.gif"  align="absmiddle"><span class="style4">서비스 관리</span></td>
		<td align="right" class="small">HOME &gt; 서비스 관리 &gt; 서비스 관리</td>
	  </tr>
	  <tr>
		<td colspan="2">&nbsp;</td>
	  </tr>
	  <tr>
		<td colspan="2">

	<table border=0  cellpadding=0 cellspacing=0 width=100%>
	<tr>
		<td>

		<table width="100%" border="0" cellpadding="0" cellspacing="5" bgcolor="F0F9FC">
		<tr> 
			<td>
				<form id="servForm" action="${requestScope.contextPath}/business/mngr/service/serviceModify.do" method="post" enctype="multipart/form-data" onsubmit="return servMdfyForm();">
				<input type="hidden" id="appVerChk" value="N" />
				<input type="hidden" id="servNo" name="servNo" value="${servMap.SERV_NO}" />
				<input type="hidden" id="appNmChk" value="N" />
				<input type="hidden" name="page" value="${page}">
				<input type="hidden" name="schTp" value="${schTp}">
				<input type="hidden" name="schTxt" value="${schTxt}">
				<input type="hidden" name="useYn" value="Y" />
				<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="BED7DF">
				<tr><td colspan="2" bgcolor=E7F6FB align="left"><font color="1CABD4"><b>&nbsp;&#149; 서비스 수정</b></font></td></tr>
				<tr>
					<td width="110" bgcolor="ffffff"  align="right" nowrap>&nbsp;<font color="red">*</font><font color="000000"> 서비스 명</font>&nbsp;</td>
					<td  bgcolor="ffffff"  align="left"><input type="text" id="servNm" name="servNm" class="buttonC" value="${servMap.SERV_NM}"></td>
				</tr>
				<tr>
					<td  bgcolor="ffffff"  align="right" nowrap>&nbsp;<font color="red">*</font><font color="000000"> 서비스 노출</font>&nbsp;</td>
					<td  bgcolor="ffffff"  align="left">
						<label for="cpyA"><input type="radio" id="cpyA" name="cpyCd" value="A" disabled="disabled" <c:if test="${servMap.CPY_CD == null}">checked="checked"</c:if>> 공통</label>
						<label for="cpyB"><input type="radio" id="cpyB" name="cpyCd" value="B" disabled="disabled" <c:if test="${servMap.CPY_CD != null}">checked="checked"</c:if>> 소속 팀</label>
					</td>
				</tr>
				<tr>
					<td bgcolor="ffffff"  align="right" nowrap>&nbsp;<font color="red">*</font><font color="000000"> 서비스 구분</font>&nbsp;</td>
					<td  bgcolor="ffffff"  align="left">
						<label for="servTpA"><input type="radio" id="servTpA" name=servTp value="A" onclick="toggleApp('A');" disabled="disabled" <c:if test="${servMap.SERV_TP eq 'A'}">checked="checked"</c:if>> 웹</label>
						<label for="servTpB"><input type="radio" id="servTpB" name=servTp value="B" onclick="toggleApp('B');" disabled="disabled" <c:if test="${servMap.SERV_TP eq 'B'}">checked="checked"</c:if>> 안드로이드</label>
						<label for="servTpC"><input type="radio" id="servTpC" name=servTp value="C" onclick="toggleApp('C');" disabled="disabled" <c:if test="${servMap.SERV_TP eq 'C'}">checked="checked"</c:if>> 맥(아이폰)</label>
					</td>
				</tr>
				<tr>
					<td  bgcolor="ffffff"  align="right" valign=top nowrap>&nbsp;<font color="red">*</font><font color="000000"> 아이콘 이미지</font>&nbsp;</td>
					<td  bgcolor="ffffff"  align="left"><input type="file" id="imgNm" name="imgNm" class="buttonC" size="50"> (${servMap.IMG_NM})</td>
				</tr>
				<tr>
					<td  bgcolor="ffffff"  align="right" nowrap>&nbsp;<font color="red"></font><font color="000000"> 서비스 설명</font>&nbsp;</td>
					<td  bgcolor="ffffff"  align="left"><textarea cols="50" rows="3" name="servDesc" class="buttonB">${servMap.SERV_DESC}</textarea></td>
				</tr>
				<tr>
					<td  bgcolor="ffffff"  align="right" nowrap>&nbsp;<font color="red"></font><font color="000000">링크 URL</font>&nbsp;</td>
					<td  bgcolor="ffffff"  align="left"><input type="text" name="lnkUrl" size="40" class="buttonC" value="${servMap.LNK_URL}"></td>
				</tr>
				<tr>
					<td  bgcolor="ffffff"  align="right" nowrap>&nbsp;<font color="red"></font><font color="000000">태그 명</font>&nbsp;</td>
					<td  bgcolor="ffffff"  align="left"><input type="text" name="tagNm" size="40" class="buttonC" value="${servMap.TAG_NM}"></td>
				</tr>
				<tr>
					<td  bgcolor="ffffff"  align="right" nowrap>&nbsp;<font color="red"></font><font color="000000">우선순위</font>&nbsp;</td>
					<td  bgcolor="ffffff"  align="left"><input type="text" id="sortNum" name="sortNum" size="5" class="buttonC" value="${servMap.SORT_NUM}"></td>
				</tr>
				<tr>
					<td bgcolor="ffffff"  align="right" nowrap>&nbsp;<font color="red">*</font><font color="000000"> 노출 여부</font>&nbsp;</td>
					<td  bgcolor="ffffff"  align="left">
						<label for="exY"><input type="radio" id="exY" name="exYn" value="Y" <c:if test="${servMap.EX_YN eq 'Y'}">checked="checked"</c:if> > 노출</label>
						<label for="exN"><input type="radio" id="exN" name="exYn" value="N" <c:if test="${servMap.EX_YN eq 'N'}">checked="checked"</c:if>> 미노출</label>
					</td>
				</tr>
				<!-- 
				<tr>
					<td bgcolor="ffffff"  align="right" nowrap>&nbsp;<font color="red">*</font><font color="000000"> 사용 여부</font>&nbsp;</td>
					<td  bgcolor="ffffff"  align="left">
						<label for="useY"><input type="radio" id="useY" name="useYn" value="Y" <c:if test="${servMap.USE_YN eq 'Y'}">checked="checked"</c:if> > 사용</label>
						<label for="useN"><input type="radio" id="useN" name="useYn" value="N" <c:if test="${servMap.USE_YN eq 'N'}">checked="checked"</c:if>> 미사용</label>
					</td>
				</tr>
				 -->
				</table>
				<table id="appTb" width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="BED7DF" <c:if test="${servMap.SERV_TP ne 'A'}">"style="display: none;"</c:if>>
				<tr><td colspan="2" bgcolor=E7F6FB align="left"><font color="1CABD4"><b>&nbsp;&#149; 앱 수정</b></font></td></tr>
				<tr>
					<td  width="110" bgcolor="ffffff"  align="right" nowrap>&nbsp;<font color="red"></font><font color="000000"><font color="red">*</font> 앱 디렉토리명</font>&nbsp;</td>
					<td  bgcolor="ffffff"  align="left"><input type="hidden" id="fdrNm" value="${servMap.FDR_NM}" />${servMap.FDR_NM}</td>
				</tr>
				<tr>
					<td  bgcolor="ffffff"  align="right" nowrap>&nbsp;<font color="red"></font><font color="000000"><font color="red">*</font> 앱 버전</font>&nbsp;</td>
					<td  bgcolor="ffffff"  align="left">
						<input type="hidden" id="frfVerCopy" value="${servMap.FRF_VER}" />
						<input type="text" id="frfVer" name="frfVer" class="buttonC" value="${servMap.FRF_VER}"> <input type="button" value="중복체크" onclick="appHstyVerChk_('${servMap.FRF_VER}');" />
						<br/>
						앱 버전 URL : http://m.kolon.com:8080/business/app/servAppVer.do?appNm=${servMap.APP_NM}
					</td>
				</tr>
				<tr>
					<td  bgcolor="ffffff"  align="right" nowrap>&nbsp;<font color="red"></font><font color="000000"><font color="red">*</font> 앱 명</font>&nbsp;</td>
					<td  bgcolor="ffffff"  align="left">
						<input type="hidden" id="appNmCopy" value="${servMap.APP_NM}" />
						<input type="text" id="appNm" name="appNm" class="buttonC" value="${servMap.APP_NM}"> <input type="button" value="중복체크" onclick="appNmChk_('${servMap.APP_NM}');" />
						<br/>
						앱 다운로드 URL : http://m.kolon.com:8080/business/app/servAppUrl.do?appNm=${servMap.APP_NM}
					</td>
				</tr>
				<tr>
					<td  bgcolor="ffffff"  align="right" valign=top nowrap>&nbsp;<font color="red">*</font><font color="000000"> 앱 파일</font>&nbsp;</td>
					<td  bgcolor="ffffff"  align="left">
						<input type="file" id="appFile1" name="appFile1" class="buttonC" size="40" /> <c:if test="${servMap.FILE_R_NM_1 ne ''}">(${servMap.FILE_R_NM_1})</c:if><br/> 
						<input type="file" name="appFile2" class="buttonC" size="40" /> <c:if test="${servMap.FILE_R_NM_2 ne ''}">(${servMap.FILE_R_NM_2})</c:if><br/> 
						<input type="file" name="appFile3" class="buttonC" size="40" /> <c:if test="${servMap.FILE_R_NM_3 ne ''}">(${servMap.FILE_R_NM_3})</c:if><br/> 
					</td>
				</tr>
				</table>
				<table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="BED7DF">
				<tr>
					<td colspan="2" bgcolor=FFFFFF height="50" align="center">
						<input type="submit" value="확인" ><input type="button" value="취소" onclick="javascript:history.back();" ><br><br>
					</td>
				</tr>
				</table>
				</form>
			</table>
			</td>
			</tr>
		</table>
	</td>
</tr>
</table>
	
<%@ include file="/WEB-INF/jsp/business/mngr/include/footer.jsp" %>